<%= link_to 'New project', :action => 'new' %>
<h1>Listing projects</h1>

<% for project in @projects %>
<table border="0" cellspacing="0" cellpadding="0" class="project_container">
	<tr>
		<td class="project_title">
			<%= project.title%> 
			<span class="project_for">for <%= project.user.full_name%></span> 	
		</td>
	</tr>
	<tr>
		<td class="project_info"><%= project.language %> Project - 
			<%= link_to "Edit", :action => "edit", :id => project.id %>
			<%= link_to "Delete", { :action => "destroy", :id => project.id }, :confirm => "Are you sure?" %>
	   </td>
	</tr>	
</table>
<% end %>

<%= link_to 'Previous page', { :page => @project_pages.current.previous } if @project_pages.current.previous %>
<%= link_to 'Next page', { :page => @project_pages.current.next } if @project_pages.current.next %> 



